#ifndef SCENE_OBJECT_H
#define SCENE_OBJECT_H

#include"StdAfx.h"
#include"EffectMgr.h"
#include"Geometry.h"

class SceneObject
{
public:
	SceneObject( XMFLOAT3 cenPos, float width, float height );
	~SceneObject( );

	bool Init( ID3D11Device* device );
	virtual void DrawObject( ID3D11DeviceContext* d3dContext, CXMMATRIX view, CXMMATRIX proj ) = 0;

	XMMATRIX GetWorld( );

private:
	bool BuildBuffer( ID3D11Device* device );
	bool CreateInputLayout( ID3D11Device* device );

protected:
	ID3D11Buffer* m_VB;
	ID3D11Buffer* m_IB;
	ID3D11InputLayout* m_inputLayout;
	
	XMFLOAT4X4 m_world;
	XMFLOAT3 m_cenPos;
	float m_width;
	float m_height;
	unsigned int m_indexCount;

};
#endif